﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TierApplication
{
    [Serializable]
    public class UserInfo
    {
        #region 变量定义
		///<summary>
		///
		///</summary>
		private decimal _UserId;
		///<summary>
		///
		///</summary>
		private string _UserCode = string.Empty;
		///<summary>
		///
		///</summary>
		private string _UserName = string.Empty;
		///<summary>
		///
		///</summary>
		private string _Password = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        private int _DeptId;
        
		///<summary>
		///
		///</summary>
		private string _Email = string.Empty;
		///<summary>
		///
		///</summary>
		private string _Address = string.Empty;
		///<summary>
		///
		///</summary>
		private string _PostCode = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        private string _Telephone = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        private string _Mobile = string.Empty;
       
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public UserInfo()
		{
		}
		///<summary>
		///
		///</summary>
        public UserInfo
		(
			decimal userid,
			string usercode,
			string username,
			string password,
			string email,
			string address,
			string postcode,
            string telephone,
            string mobile
		)
		{
			_UserId   = userid;
			_UserCode = usercode;
			_UserName = username;
			_Password = password;
			_Email     = email;
			_Address  = address;
			_PostCode     = postcode;
            _Telephone = telephone;
            _Mobile = mobile;
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///
		///</summary>
        public decimal UserId
		{
			get {return _UserId;}
			set {_UserId = value;}
		}

		///<summary>
		///
		///</summary>
        public string UserCode
		{
			get {return _UserCode;}
			set {_UserCode = value;}
		}

		///<summary>
		///
		///</summary>
        public string UserName
		{
			get {return _UserName;}
			set {_UserName = value;}
		}

		///<summary>
		///
		///</summary>
        public string Password
		{
			get {return _Password;}
			set {_Password = value;}
		}
        /// <summary>
        /// 
        /// </summary>
        public int DeptId
        {
            get { return _DeptId; }
            set { _DeptId = value; }
        }
		///<summary>
		///
		///</summary>
        public string Email
		{
			get {return _Email;}
			set {_Email = value;}
		}

		///<summary>
		///
		///</summary>
        public string Address
		{
			get {return _Address;}
			set {_Address = value;}
		}

		///<summary>
		///
		///</summary>
        public string PostCode
		{
			get {return _PostCode;}
			set {_PostCode = value;}
		}
        /// <summary>
        /// 
        /// </summary>
        public string Mobile
        {
            get { return _Mobile; }
            set { _Mobile = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Telephone
        {
            get { return _Telephone; }
            set { _Telephone = value; }
        }
		#endregion
    }
}